--- @param prefix string
--- @return boolean
function string:startsWith(prefix)
	return self:sub(1, #prefix) == prefix
end

--- @param suffix string
--- @return boolean
function string:endsWith(suffix)
	return self:sub(-#suffix, -1) == suffix
end

--- @return number[]
function string:toCharArray()
	return { self:byte(1, -1) }
end

--- @return number[]
function string:toByteArray()
	return { self:byte(1, -1) }
end

return string